Skip to main content

TsgCollection

Unit:sgLists

Description

TsgCollection represents collection of items.

Syntax

type TsgCollection = class(TsgBaseList)

Properties

PropertiesDescription
FirstThe property indicates the first item in the collection.
ItemsThe property lists the object references.
LastThe property indicates the last item in the collection.
Properties derived from TsgBaseListDescription
CapacityThe property specifies the allocated size of the array of pointers maintained by the TsgBaseList object.
CountThe property indicates the number of entries in the list that are in use.
DublicatesThe property specifies how to handle items with same values.
ListTypeThe property specifies the type of elements maintained by the list.
ProcCompareThe property specifies the procedure used to compare items in the list.
SortedThe property indicates whether the items are sorted or not.

Methods

MethodsDescription
AddThe method a new item at the end of the collection.
ClearTypeListThe method deletes all the items of a specified data type.
CreateThe method creates a new list and initializes its data.
IndexOfThe method returns the index of separate item in the collection by its hash code.
Methods derived from TsgBaseListDescription
AppendDynArrayThe method appends a dynamic array to the list.
AssignThe method copies elements of another list to this one.
ClearThe method deletes all items from the list.
CopyFromThe method copies data from a specified list to this list.
CopyToThe method copies data from this list to a specified list.
CreateThe method creates a new list and initializes its data.
DeleteThe method removes the item(s) at a specific position from the list.
DestroyThe method destroys an instance of TsgBaseList.
FillCharThe method is for internal use.
FlipThe method performs mirrored rearrangement of the items.
HighThe method returns the index of last item in the list.
IsEqualThe method checks whether this list and a specified list are equal.
IsItemsUniqueThe method checks whether the Items array contains unique data set.
SortThe method performs a sort on the list.
SwapItemsThe method swaps two items in the list.